package com.zmcn.msg.bean.po;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * 消息订单实体
 * 
 * @author <b>欧建东<br/>
 *         Email:oyjd@163.com</b>
 * @version 1.0
 */
@Entity
@Table(name = "T_MSG_ORDER")
public class MsgOrder implements Serializable {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 8818718515072837524L;

	/**
	 * 订单ID
	 */
	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name = "ORDER_ID", length = 32)
	private String orderId;

	/**
	 * 消息ID
	 */
	@Column(name = "MSG_ID", length = 32)
	private String msgId;

	/**
	 * 创建者
	 */
	@Column(name = "CREATOR", length = 32)
	private String creator;

	/**
	 * 创建时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME")
	private Date createTime;

	/**
	 * 下发者
	 */
	@Column(name = "SENDOR", length = 32)
	private String sendor;

	/**
	 * 下发时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "SEND_TIME")
	private Date sendTime;

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getMsgId() {
		return msgId;
	}

	public void setMsgId(String msgId) {
		this.msgId = msgId;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getSendor() {
		return sendor;
	}

	public void setSendor(String sendor) {
		this.sendor = sendor;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

}